package com.bookmanger.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bookmanger.common.result.Result;
import com.bookmanger.entity.Order;
import com.bookmanger.entity.dto.OrderRankDTO;
import com.bookmanger.entity.vo.BookCategoryCountVO;

import java.util.List;

/**
 * @author huangfuhao
 * @Date 2024/10/26
 */
public interface OrderService extends IService<Order>{
    /**
     * 获取借阅排行榜
     * @return
     */

    Result<List<OrderRankDTO>> getOrderRank();

    Result<Integer> getOrderCount();

    Result<Integer> getOrderCountNullHandle();

    Result<List<BookCategoryCountVO>> getOrderBookCategoryCount();
}
